<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Life Cycle</title>
    <script src="bower_components/vue/dist/vue.min.js"></script>
</head>
<body>

<div id="app-8">
    <ul><article-item v-for="article in articles" v-bind:todo="article"></article-item> </ul>
</div>

</body>

<script type="text/javascript">
    Vue.component('article-item', {
        props: ['todo'],
        template: '<li>{{ todo.text }}</li>'
    });

    var app8 = new Vue({
        el: '#app-8',

        //:"数据",
        data: {
            articles: [
                { text: '蔬菜 1' },
                { text: '奶酪 1' },
                { text: '随便其他什么人吃的东西 1' }
            ]
        },

        //:"计算属性",
        computed: {

        },

        //:"过滤器",
        filters : {

        },

        //:"方法",
        methods: {

        },

        //:"模版",
       /* template: {

        },*/

        //:"生命周期",

        created:function(){

        },
        mounted:function(){

        },
        updated:function(){

        },
        destroyed:function(){

        }
    })
</script>
</html>